package com.datamining;

import com.datamining.bean.NodeElement;
import com.datamining.bean.TreeParent;
import com.datamining.service.AlgorithService;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class Main {
    private static String TABLE_SCHEMA = "id3";
    private static String TABLE_NAME = "tennis";

    public static void main(String[] args) {
//        NodeElement nodeElement = new NodeElement();
//        TreeParent<NodeElement> treeParent = new TreeParent<>(nodeElement);
        AlgorithService algorithService = new AlgorithService();
        List<Integer> idList = new ArrayList<>();
        idList.add(1);
        idList.add(2);
        idList.add(8);
        idList.add(9);
        idList.add(11);
        Map<String,List<Integer>> map = algorithService.divIdList(TABLE_NAME,idList);
        System.out.println(map);
        Map<String,List<Integer>> map1 = algorithService.findById(TABLE_NAME,idList,"temperature","热");
        System.out.println(map1);
    }
}
